<?php
/**
 *  支付方式
*/

namespace app\api\service;


class PaymentMethod
{
    private $paymentMethod = [
        [
            'id' => 1,
            'name' => 'Crypto Pay',
            'description' => ''
        ],
//        [
//            'id' => 2,
//            'name' => 'Coinbase Pay',
//            'description' => ''
//        ],
        [
        'id' => 3,
        'name' => 'Wire Transfer',
        'description' => ''
        ],
    ];
    /**
     *  物流列表
    */
    public function getPaymentMethodList($param){
        return $this->paymentMethod;
    }

    /**
     *  获取一条支付
    */
    public function getPaymentMethodItem($id)
    {
        foreach ($this->paymentMethod as $value){
            if($value['id'] == $id) {
                return $value;
            }
        }
    }

    /**
     *  支付信息文本
    */
    public function getPaymentInformation()
    {
        return  <<<HTML
The payment method is Wire Transfer. <br />
Please pay the full amount of your order according to the information below. <br />
So that we can associate your transfer with your order. <br />
【Beneficiary Bank: PING AN BANK CO., LTD.】 <br />
【Beneficiary's Bank Address: 5047, SHENNAN EAST ROAD, SHENZHEN 518001 P.R.CHINA】 <br />
【Beneficiary's Bank Swift: SZDBCNBS】 <br />
（If you need 11-digit SWIFT Code: SZDBCNBSXXX） <br />
【Beneficiary's Account Number: <br />
OSA15000112465560（USD）， <br />
OSA15000112465366（EUR），<br />
OSA15000112465463（HKD）】<br />
【Beneficiary's Name: SUNRAYS INTERNATIONAL GROUP LIMITED】 <br />
【Beneficiary's Address: FLAT/RM 63 07/F WOON LEE COMMERCIAL BUILDING 7-9 <br />
AUSTIN AVE TSIM SHA TUSI KL HK】 <br />
【Remittance Information: Purchase of goods】 <br />
(PING AN BANK no longer process commercial payments to or from Russia or Belarus) <br />
HTML;
    }


}
